package com.example.lin.fragment_manager.fragment;


import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.example.lin.fragment_manager.R;


/**
 * A simple {@link Fragment} subclass.
 */
public class CFragment extends Fragment {


    public CFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        Log.w(TAG, "onCreateView: ");
        return inflater.inflate(R.layout.fragment_c, container, false);
    }
    public static final String TAG = "TAG";

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.w(TAG, "onCreate: ");
    }

    @Override
    public void onStart() {
        super.onStart();
        Log.w(TAG, "onStart: ");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.w(TAG, "onResume: ");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.w(TAG, "onPause: ");
    }

    @Override
    public void onStop() {
        super.onStop();
        Log.w(TAG, "onStop: ");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.w(TAG, "onDestroy: ");
    }
}
